package com.example.demo;


import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@SpringBootTest

@RunWith(SpringRunner.class)

public class WordLike {

    @Resource
    private RedisTemplate redisTemplate;

    //    操作String
    @Test
    public void testString() {
        System.out.println(redisTemplate.opsForValue().get("user_like_" + 1));
    }



}